{% extends '::backend.html.twig' %}
{% block contenido %}
         {% include 'BackendBundle:Default:flashAlerts.html.twig'%}

<legend>Nuevo Tipo de Cargo</legend>
    <form class="form-horizontal"  action="{{ path('tipocargo_create') }}" method="post" {{ form_enctype(form) }}>
        <fieldset>
            <div class="control-group">
                <label class="control-label required">Nombre</label>
                    {#{{ form_errors(form.codigo) }} #}
                <div class="controls">
                    {{ form_widget(form.nombre) }}
                </div>
            </div>
                 <div class="control-group">
                     <label class="control-label required">Duraci&oacute;n</label>
                    {#{{ form_errors(form.codigo) }} #}
                <div class="controls">
                    {{ form_widget(form.duracion) }}
                </div>
            </div>
    
            <div class="form-actions">
            <button class="btn btn-success" type="submit"><i class="icon-ok icon-black"></i> Guardar</button>
            <a class="btn btn-danger" href="{{ path('tipocargo', { 'id': entity.id }) }}"><i class="icon-remove icon-black"></i>
                Cancelar
            </a>
        </div>
    </form>        

                                            
{% endblock %}
